package com.example.demo.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @author 许久龙
 * @since 2022-02-19
 */
@Data
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_file")
@ApiModel(value="File对象", description="文件信息存储表")
public class File implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文件存储主键id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "文件地址")
    @TableField("file_url")
    private String fileUrl;

    @ApiModelProperty(value = "文件名称")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty(value = "文件扩展名")
    @TableField("extension_name")
    private String extensionName;

    @ApiModelProperty(value = "原始文件名称")
    @TableField("original_name")
    private String originalName;

    @ApiModelProperty(value = "文件类型(1：其他类型文件；2:轮播图片；3：视频文件；)")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "文件大小")
    @TableField("size")
    private String size;

    @ApiModelProperty(value = "创建用户id")
    @TableField("create_id")
    private String createId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;


}
